﻿<UserControl x:Class="Haushaltsbuch.Views.LoginView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
             xmlns:ff="clr-namespace:Haushaltsbuch.Helpers;assembly=Haushaltsbuch.Helpers"
             mc:Ignorable="d" Height="88" Width="301">
    <DockPanel>
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
            <TextBlock Width="100">Benutzername</TextBlock>
            <TextBox Name="Username" Width="200">u1</TextBox>
        </StackPanel>   
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
            <TextBlock Width="100">Passwort</TextBlock>
            <PasswordBox x:Name="Password"  ff:PasswordBoxAssistant.BindPassword="true"  ff:PasswordBoxAssistant.BoundPassword="{Binding Path=Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="200" ></PasswordBox>
        </StackPanel>

        <DockPanel  >
            <Button Name="Login" Content="Login" IsDefault="True" Width="100"  DockPanel.Dock="Left"/>
            <Button Name="Exit"  cal:Message.Attach="Exit" Content="Abbrechen" IsCancel="True" Width="100" DockPanel.Dock="Right"/>
        </DockPanel>
        </DockPanel>
</UserControl>